void computeEquations(FP_POINT* equations, POINT* points, U32 nbPoints)
{
	for (U32 i=0; i<nbPoints; i++)
	{
		POINT* p1 = &points[i];
		POINT* p2 = &points[(i+1)%nbPoints];
		FP_POINT* equation = &equations[i];

		double a = p1->y * p2->z - p1->z * p2->y;
		double b =-p1->x * p2->z + p1->z * p2->x;
		double c = p1->x * p2->y - p1->y * p2->x;

		double coef = MAX(ABS(a),MAX(ABS(b),ABS(c)));

		equation->x = FLOAT2FP(a/coef);
		equation->y = FLOAT2FP(b/coef);
		equation->z = FLOAT2FP(c/coef);
	}
}